package com.dixiang.framework.http;

import java.util.Map;
import android.app.Activity;
import android.content.Context;

import com.dixiang.framework.common.QJNetUICallback;
import com.dixiang.framework.network.IResult;
import com.google.gson.reflect.TypeToken;

public class DataHandler implements IDataInterface{

	@Override
	public <T extends IResult> String getDataObject(Activity activity,
			String url, Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback) {
		return HttpAccess.getDataObject(activity, url, map, typeToken, callback);
		
	}

	@Override
	public <T extends IResult> String getCheckData(Activity activity,
			Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback) {
		return HttpAccess.getCheckData(activity, map, typeToken, callback);
	}

	@Override
	public <T extends IResult> String getLocalData(Activity activity,
			String url, Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback) {
		return HttpAccess.getLocalData(activity, url, map, typeToken, callback);
	}

	@Override
	public <T extends IResult> String postDataObject(Activity activity,
			String url, Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback) {
		return HttpAccess.postDataObject(activity, url, map, typeToken, callback);
	}

	@Override
	public <T extends IResult> String getBookingList(Activity activity,
			String url, Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback, String tokenParam) {
		return HttpAccess.getBookingList(activity, url, map, typeToken, callback, tokenParam);
	}

	@Override
	public <T extends IResult> String getBookingDetial(Activity activity,
			String url, Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback, String tokenParam) {
		return HttpAccess.getBookingDetail(activity, url, map, typeToken, callback, tokenParam);
	}

	@Override
	public <T extends IResult> String getDoctorList(Activity activity,
			String url, Map<String, Object> map, TypeToken typeToken,
			QJNetUICallback callback) {
		return HttpAccess.getDataObject(activity, url, map, typeToken, callback);
	}
	
}
